var dom = document.getElementById("man");
var myChart = echarts.init(dom);
option = {
	title: {
        text: '男女比例',
    },
    tooltip: {
        trigger: 'item',
        formatter: "{a} <br/>{b}: {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',
        x: 'left',
    },
    series: [
        {
            name:'数据来源:数字校园',
            type:'pie',
            radius: ['45%', '80%'],
            avoidLabelOverlap: false,
            label: {
                normal: {
                    show: false,
                    position: 'center'
                },
                emphasis: {
                    show: true,
                    textStyle: {
                        fontSize: '10',
                        fontWeight: 'bold'
                    }
                }
            },
            labelLine: {
                normal: {
                    show: false
                }
            },
            data:[
                {value:16335, name:'男'},
                {value:12210, name:'女'},
                
            ]
        }
    ]
};
myChart.setOption(option, true);